﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Quiz_Builder.ViewModel.TestTypes
{
    internal class TrueFalseTestViewModel : BaseViewModel
    {
        #region Fields
        private ObservableCollection<AnswerRadioItem> _answers;
        #endregion

        #region Properties
        public ObservableCollection<AnswerRadioItem> Answers
        {
            get 
            {
                if (_answers == null)
                    _answers = new ObservableCollection<AnswerRadioItem>();
                return _answers; 
            }
            set
            {
                _answers = value;
                RaisePropertyChanged("Answers");
            }
        }
        #endregion

        public TrueFalseTestViewModel()
        {
           // Answers.Add(new AnswerRadioItem(true, "This answer is true"));
           // Answers.Add(new AnswerRadioItem(false, "This answer is false"));
        }

    }
}
